package com.woniuxy.lab.woniu_lab.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 充值记录表
 * </p>
 *
 * @author Silas
 * @since 2023-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("lab_charge")
public class Charge implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 充值单号
     */
    private String no;

    /**
     * 充值内容(给支付宝看的)
     */
    private String info;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 失效时间
     */
    private LocalDateTime expireTime;

    /**
     * 充值金额
     */
    private BigDecimal money;

    /**
     * 状态(SUCCESS/FAIL/PAYING)
     */
    private String status;


}
